<?php


namespace app\controller;

/**
 * 小区
 * @package app\controller
 */
class Common extends BackendController{
    protected $model = null;
    protected $noNeedLogin=['*'];
    public function _initialize()
    {
        //parent::_initialize();
        //$this->model = new \app\model\Aizone();

    }

    public function uploadPo($filePath) {
        $file = request()->file('file');
        // 上传到本地服务器
        if($filePath=='reg'){
            $filePath=config('capture.apply_path');
        }
        $filePath.=date('Ym').'/'.date('d').'/';
        $file->move($filePath, $file->getOriginalName());
        $this->success('上传成功');
    }

}